package top.wshape1.rpc.test.springdemo1;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import top.wshape1.rpc.spring.annotation.EnableRpcConsumer;
import top.wshape1.rpc.spring.annotation.EnableRpcProvider;

/**
 * @author Wshape1
 * @version 1.0
 * @description
 * @since 2024-02-19
 */

@EnableRpcConsumer
@EnableRpcProvider
@SpringBootApplication
public class Demo1App {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(Demo1App.class, args);
//        String[] names = run.getBeanDefinitionNames();
//        for (int i = 0; i < names.length; i++) {
//            System.out.println(i + " " + names[i]);
//        }
    }

}
